package com.hksj.base.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 报警记录表
 * @author chenxingqing
 */
@Data
@ApiModel
public class AlarmRecordVO extends DeviceVO {
    @ApiModelProperty(value = "属性类型(temperature、humidity等)")
    private String property;

    @ApiModelProperty("属性名称对应name")
    private String propertyName;

    @ApiModelProperty(value = "物模型属性的单位")
    private String unit;

    @ApiModelProperty(value = "属性对应的字符值(可能推送的属性不一定为数字类型的数据)")
    private String value;

    @ApiModelProperty("推送类型(1=欠压报警(低于最小阈值的报警) 2=过压报警(高于最大阈值的报警))")
    private Integer pushType;

    @ApiModelProperty(value = "报警时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "恢复时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date recoveryTime;

    @ApiModelProperty("状态 0 = 报警中 1 = 已恢复")
    private Integer status;

    @ApiModelProperty(value = "报警备注")
    private String remark;

}
